package com.guangyunl.d_object;

public class Test01 {
    public static void main(String[] args) {
        Citizen citizen = new Citizen();
        citizen.name = "张三";
        citizen.birthday.year = 2022;
        citizen.birthday.month = 12;
        citizen.birthday.day = 12;
        citizen.idCard = "440927202212125411";


        System.out.println("citizen = " + citizen);
        System.out.println("citizen.name = " + citizen.name);
//        System.out.println("citizen.birthday = " + citizen.birthday);
        System.out.println("citizen.birthday.year = " + citizen.birthday.year);
        System.out.println("citizen.birthday.month = " + citizen.birthday.month);
        System.out.println("citizen.birthday.day = " + citizen.birthday.day);
        System.out.println("citizen.idCard = " + citizen.idCard);

    }
}
/*
citizen = com.guangyunl.d_object.Citizen@1b6d3586
citizen.name = 张三
citizen.birthday.year = 2022
citizen.birthday.month = 12
citizen.birthday.day = 12
citizen.idCard = 440927202212125411
 */